/*
 * Copyright (C) 2016  Nicola Spanti (RyDroid) <dev@nicola-spanti.info>
 * 
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Affero General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Affero General Public License for more details.
 * 
 * You should have received a copy of the GNU Affero General Public License
 * along with this program.  If not, see <https://www.gnu.org/licenses/>.
 */


#include "PlanetWars2dRT-core/specific/model/ship_move.h"
#include "PlanetWars2dRT-core/specific/model/ship_observer.h"
#include "PlanetWars2dRT-core/specific/model/ship_observers.h"


EXTERN_C_BEGIN


void
ship_notify_moved(ship_t* a_ship)
{
  struct observer_data_with_code data;
  data.code = SHIP_OBSERVER_CODE_MOVE;
  data.data = NULL;
  ship_notify_observers(a_ship, &data);
}


EXTERN_C_END
